import { createSlice } from '@reduxjs/toolkit'

const initialState = {
    data: "巴嘎",
}

export const addSlice = createSlice({
    name: '牙路',
    initialState,
    reducers: {
        addData: (state, { payload }) => {
            // console.log("add我看看传进来个啥数据：", payload)
            state.data = payload
        }
    }
})

export default addSlice
